using System;
using System.Runtime.Serialization;

namespace SharpObjects.Shared.ApplicationEvents
{
    [Serializable]
    [DataContract]
    public class LogExceptionApplicationEvent
    {
        public LogExceptionApplicationEvent()
        {
            this.AppendStackTrace = true;
        }

        [DataMember]
        public LogCategoryName CategoryName { get; set; }
        [DataMember]
        public Origin Origin { get; set; }
        [DataMember]
        public Exception Exception { get; set; }
        [DataMember]
        public bool AppendStackTrace { get; set; }
    }
}